package com.nowcoder.code.hjnc;

public class NC103 {

    public static void main(String[] args) {

    }

    public String solve(String str) {
        char[] cs = str.toCharArray();
        int start = 0, end = cs.length - 1;
        char tmp;
        while (start < end) {
            tmp = cs[start];
            cs[start] = cs[end];
            cs[end] = tmp;
            start++;
            end--;
        }
        return new String(cs);
    }

}
